package com.arturjaneczko.view.impl.clipboard.preview;

import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.util.ArrayList;

import javax.swing.JPanel;

import com.arturjaneczko.model.core.IModel;
import com.arturjaneczko.view.core.AView;
import com.arturjaneczko.view.impl.clipboard._component.Color;

public class ClipboardView extends AView {

	private JPanel panel;

	public ClipboardView(IModel model) {
		super(model);
		compositeList = new ArrayList<>();
	}

	@Override
	public void ui() {
		panel = new JPanel(new GridBagLayout());
		GridBagConstraints c = new GridBagConstraints();
		c.fill = GridBagConstraints.HORIZONTAL;
//		FlowLayout fl = (FlowLayout) panel.getLayout();
//		fl.setHgap(0);
//		fl.setVgap(0);
//		panel.setLayout(fl);
		panel.setBackground(Color.NOTE.getColor());
		
		uiComposite(this, panel, c);
	}

}
